Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored code in src/socket.io/admin/rooms.js #28

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

alicekang1
Copy link

Refactored code to reduce its Cognitive Complexity from 16 to the 15 allowed. Added separate helper functions to break up nested for-loop and if statements.

@alicekang1 alicekang1 merged commit 98f6e71 into f24 Sep 25, 2024
1 check passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11025404843

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 6 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 82.676%

Files with Coverage Reduction New Missed Lines %
src/socket.io/admin/rooms.js 6 75.93%
Totals Coverage Status
Change from base Build 11025310748: 0.0%
Covered Lines: 22332
Relevant Lines: 25591

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants